package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/6/28 16:11
 * @since v1.0
 */
@Getter
public enum IfStatisticEnum {
    NON_STATISTIC(0, "enum.ifStatistic.name.non_statistic", "nonStatistic"),


    STATISTIC(1, "enum.ifStatistic.name.statistic", "statistic"),
    ;

    IfStatisticEnum(Integer code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    private Integer code;
    private String name;
    private String attr;

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
